package com.itheima.demo;

public class Demo_Exception {
    public static void main(String[] args) {
        try {
            int[] arr = null;
            System.out.println(arr[0]);
        } catch (NullPointerException e) {
            System.out.println("空指针异常!");

        }
    }
}
